Creating the project for C or C++

How to create a new project for →C or →C++ in Neuron Power Engineer:

  1. In menu File or from the context menu within the project explorer, select New and Project...

  2. In the dialog, expand C/C++. For the example project, select the project template C++ Project and click Next >.
    (info) When you are creating your own application in C or C++, select the relevant project template from the following ones:

    Project template

    Meaning

    C Project

    A new C project is created.

    C++ Project

    A new C++ project is created.

    C/C++ Project

    A new C or C++ project is created.

    Makefile Project with Existing Code

    A new Makefile project is created in a directory containing existing code.

    The following steps are valid for the project template C++ Project. If you are using a different project template, proceed analogously to the following steps.

  1. In the next dialog, define name, position, project type and the toolchain for the project:


    In detail:

    1. Enter the project name (e.g. HelloWorld) and the location.
      (warning) Specify a separate location for each C-/C++ project. Details: see also "The same folder when creating C-/C++ projects causes problems".

    2. For the example project, expand Executable and select Hello World C++ Project as project type 
      (info) This project type creates a simple example "Hello World" in C++, the makefile is automatically created.

    3. Select the required toolchain.

    4. Click Next >.

  2. In the next dialog, specify the basic settings and click Next >.

     

  3. The next dialog informs about the provided configurations that are based on the selected project type and toolchain. Click Finish.

     

  4. Click Open Perspective when your are prompted to switch to the →perspective C/C++.
    Result: The project is displayed within the project explorer.